package ken.app.comparator;

import java.util.Comparator;

import ken.app.bean.GetStoreInfoBean;
import ken.app.bean.TreeAllBean;


public class StoreAllComparator implements Comparator{

	@Override
	public int compare(Object lhs, Object rhs) {

		GetStoreInfoBean element2 = (GetStoreInfoBean) lhs;
		GetStoreInfoBean element1 = (GetStoreInfoBean) rhs;
		
		int flag = element2.getDistance() - (element1.getDistance());
		
		return flag;
	}

}
